const chalk = require("chalk");
//默认导出一个自执行函数，向外导出三个全局变量，每个变量执行chalk插件改变颜色
module.exports = (function () {
  logerr = chalk.bold.white.bgRed;
  logred = chalk.bold.red;
  logbgsucc = chalk.black.bgGreen;
  logsucc = chalk.green;
  logwarn = chalk.keyword("orange");
  logblue = chalk.keyword("blue");
  logmagenta = chalk.keyword("magenta");
  logcyan = chalk.keyword("cyan");
})();
